﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="promotions.aspx.cs" Inherits="promotions" EnableViewState="false" %>
<!DOCTYPE html>
<html>
<head>
    <title>优惠活动</title>
    <script src="jquery-1.11.2.min.js"></script>
</head>
<body>
    <div>
      <section data-role="page" id="storeinquiry_main">
            <div data-role="collapsible-set" id="storeinquiry_content">
                <asp:Repeater runat="server" ID="rptShopList">
                    <ItemTemplate>
                        <div data-role="collapsible">
                            <h3>
                                <div class="businessleft"></div>
                                <div class="businessright">
                                    <span><%#Eval("name")%></span>
                                    <span>有效期<%#Eval("StartTime","{0:yyyy-MM-dd}")%>到<%#Eval("EndTime","{0:yyyy-MM-dd}")%></span>
                                </div>
                            </h3>
                            <div style="font-size:13px;">
                                <p><%#Eval("name")%></p>
                                <p>活动简介：<%#Eval("note")%></p>
                              <p>赠送积分：<span class="argument"><%#Eval("Score")%></span></p>
                              <p>赠送储值：<span class="argument"><%#Eval("money")%></span></p>
                              <p>分享赠送储值：<span class="argument"><%#Eval("share_money")%></span></p>
                              <p>分享赠送积分：<span class="argument"><%#Eval("share_score")%></span></p>
                              <p>分享赠送红包：<span class="argument"><%#Eval("share_WxPocket")%></span></p>
                              <p>推广赠送储值：<span class="argument"><%#Eval("Extend_money")%></span></p>
                              <p>推广赠送积分：<span class="argument"><%#Eval("Extend_score")%></span></p>
                              <p>推广赠送红包：<span class="argument"><%#Eval("Extend_WxPocket")%></span></p>
                              <p>礼品赠送：<span class="argument"><%#Eval("PresentsName")%></span></p>
                              <p>代金券赠送：<span class="argument"><%#Eval("CouponTitle")%></span></p>
                              <p>三级返利：一级<span class="argument"><%#Eval("Level1")%></span>%，二级<span class="argument"><%#Eval("Level2")%></span>%，三级<span class="argument"><%#Eval("Level3")%></span>%</p>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            
            <footer data-role="footer" data-position="fixed" id="promotions_footer">
            <div data-role="navbar" id="nav-glyphish-example">
                <ul>
                    <li class="footer_active"><a href="#index" id="site" class="ui-btn-active">
                            <img src="images/01.png" /><br/>商家网站
                        </a></li>
                    <li><a href="#goodlist"id="buy" data-load="goodlist.aspx">
                            <img src="images/Goods_Book_btn.png" /><br/>商品购买
                        </a></li>
                    <li><a href="#membershipcard" data-load="membershipcard.aspx"  id="card">
                            <img src="images/member_card_btn.png" /><br/>会员卡
                        </a></li>
                    <li><a href="#giftlist" data-load="giftlist.aspx" id="convert">
                            <img src="images/exchange_btn.png" /><br/>积分兑换
                        </a></li>
                </ul>
            </div>
        </footer>
        </section>
    </div>
</body>
</html>
<script>
    $(function () {
        
        $(".argument").each(function () {
          
            if ($(this).html() == "" ||Number($(this).html())==0) {
                $(this).parent().hide();
            } 

        })

    })
</script>
